<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: dcItfc结构体 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="../../dc/d53/structdc_itfc-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">dcItfc结构体 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
</div><!--header-->
<div class="contents">

<p>数据通道接口，用来统一数据操作接口。 其中涉及到错误编号的时候，当错误编号小于0的时候是错误编号，等于0的时候是没有发生错误  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../dd/d5a/dcitfc_8hpp_source.html">dcitfc.hpp</a>&gt;</code></p>
<div class="dynheader">
类 dcItfc 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d9/da1/structdc_itfc__inherit__graph.png" border="0" usemap="#adc_itfc_inherit__map" alt="Inheritance graph"/></div>
<map name="adc_itfc_inherit__map" id="adc_itfc_inherit__map">
<area shape="rect" title="数据通道接口，用来统一数据操作接口。 其中涉及到错误编号的时候，当错误编号小于0的时候是错误编号，等于0的时候是没有发生错误" alt="" coords="5,5,229,400"/>
<area shape="rect" href="../../d2/d50/classtcp_svr.html" title="使用LIBUV实现的TCP服务器模块" alt="" coords="29,448,205,1269"/>
<area shape="poly" title=" " alt="" coords="120,415,120,448,115,448,115,415"/>
</map>
</div>
<div class="dynheader">
dcItfc 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d79/structdc_itfc__coll__graph.png" border="0" usemap="#adc_itfc_coll__map" alt="Collaboration graph"/></div>
<map name="adc_itfc_coll__map" id="adc_itfc_coll__map">
<area shape="rect" title="数据通道接口，用来统一数据操作接口。 其中涉及到错误编号的时候，当错误编号小于0的时候是错误编号，等于0的时候是没有发生错误" alt="" coords="5,5,229,400"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a683be737dda8743a4c57330173659558" id="r_a683be737dda8743a4c57330173659558"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a683be737dda8743a4c57330173659558">connect</a> (const std::string &amp;url, bool bind=false)=0</td></tr>
<tr class="separator:a683be737dda8743a4c57330173659558"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d3e5af287ee032d94c3206b777762f3" id="r_a8d3e5af287ee032d94c3206b777762f3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8d3e5af287ee032d94c3206b777762f3">send</a> (const char *data, size_t len)=0</td></tr>
<tr class="separator:a8d3e5af287ee032d94c3206b777762f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba834607fa0a5348502faa54c05b6793" id="r_aba834607fa0a5348502faa54c05b6793"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aba834607fa0a5348502faa54c05b6793">close</a> ()=0</td></tr>
<tr class="separator:aba834607fa0a5348502faa54c05b6793"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf293d37a6b5306a9b1cc95efb5703b6" id="r_adf293d37a6b5306a9b1cc95efb5703b6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adf293d37a6b5306a9b1cc95efb5703b6">onRecv</a> (const char *data, size_t len)=0</td></tr>
<tr class="separator:adf293d37a6b5306a9b1cc95efb5703b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fecbd0b883d5c80551b15eb4786229e" id="r_a7fecbd0b883d5c80551b15eb4786229e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7fecbd0b883d5c80551b15eb4786229e">onError</a> (int err)=0</td></tr>
<tr class="separator:a7fecbd0b883d5c80551b15eb4786229e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb102933438410297cb1ce2bdb61bf47" id="r_acb102933438410297cb1ce2bdb61bf47"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acb102933438410297cb1ce2bdb61bf47">onConnected</a> ()=0</td></tr>
<tr class="separator:acb102933438410297cb1ce2bdb61bf47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedb94ecc6c33b46519041a183100d315" id="r_aedb94ecc6c33b46519041a183100d315"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aedb94ecc6c33b46519041a183100d315">onDisconnected</a> ()=0</td></tr>
<tr class="separator:aedb94ecc6c33b46519041a183100d315"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4284e7336cd979c61bfc79a72ca90a7" id="r_aa4284e7336cd979c61bfc79a72ca90a7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa4284e7336cd979c61bfc79a72ca90a7">onClose</a> ()=0</td></tr>
<tr class="separator:aa4284e7336cd979c61bfc79a72ca90a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac931cf0d15bb515c7abd0b89a2cb9caa" id="r_ac931cf0d15bb515c7abd0b89a2cb9caa"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac931cf0d15bb515c7abd0b89a2cb9caa">onSend</a> (int err)=0</td></tr>
<tr class="separator:ac931cf0d15bb515c7abd0b89a2cb9caa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a455d55880e929db216b77768df9932" id="r_a5a455d55880e929db216b77768df9932"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5a455d55880e929db216b77768df9932">onClientConnected</a> ()=0</td></tr>
<tr class="separator:a5a455d55880e929db216b77768df9932"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab0fbc14cc9a4bc6f503c02e3130da6a" id="r_aab0fbc14cc9a4bc6f503c02e3130da6a"><td class="memItemLeft" align="right" valign="top">virtual const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aab0fbc14cc9a4bc6f503c02e3130da6a">type</a> () const =0</td></tr>
<tr class="separator:aab0fbc14cc9a4bc6f503c02e3130da6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a7cb3bcd4319482321107ffb06fef95" id="r_a6a7cb3bcd4319482321107ffb06fef95"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6a7cb3bcd4319482321107ffb06fef95">evtError</a> (std::function&lt; void(int err) &gt; fun)=0</td></tr>
<tr class="separator:a6a7cb3bcd4319482321107ffb06fef95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcca8985af3ad66c3cb2dabd265ab66a" id="r_afcca8985af3ad66c3cb2dabd265ab66a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afcca8985af3ad66c3cb2dabd265ab66a">evtConnected</a> (std::function&lt; void() &gt; fun)=0</td></tr>
<tr class="separator:afcca8985af3ad66c3cb2dabd265ab66a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4bc76c247fe82d026bd886b8922266f" id="r_ae4bc76c247fe82d026bd886b8922266f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae4bc76c247fe82d026bd886b8922266f">evtClientConnected</a> (std::function&lt; void(const std::string &amp;) &gt; fun)=0</td></tr>
<tr class="memdesc:ae4bc76c247fe82d026bd886b8922266f"><td class="mdescLeft">&#160;</td><td class="mdescRight">对于服务器有效  <br /></td></tr>
<tr class="separator:ae4bc76c247fe82d026bd886b8922266f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5dc97bfbd7470174d41fa37a59e3a2b" id="r_ac5dc97bfbd7470174d41fa37a59e3a2b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac5dc97bfbd7470174d41fa37a59e3a2b">evtClientDisconnected</a> (std::function&lt; void(const std::string &amp;)&gt; fun)=0</td></tr>
<tr class="separator:ac5dc97bfbd7470174d41fa37a59e3a2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb25eb4177e4fcf5f71c43557117eed5" id="r_aeb25eb4177e4fcf5f71c43557117eed5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aeb25eb4177e4fcf5f71c43557117eed5">evtClosed</a> (std::function&lt; void() &gt; fun)=0</td></tr>
<tr class="separator:aeb25eb4177e4fcf5f71c43557117eed5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e26237ed9abb93d34ed1f12f3a81e21" id="r_a3e26237ed9abb93d34ed1f12f3a81e21"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3e26237ed9abb93d34ed1f12f3a81e21">evtRecv</a> (std::function&lt; void(const char *data, size_t len)&gt; fun)=0</td></tr>
<tr class="separator:a3e26237ed9abb93d34ed1f12f3a81e21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79dd374eaaa258ffa03cbb306d3a3de3" id="r_a79dd374eaaa258ffa03cbb306d3a3de3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a79dd374eaaa258ffa03cbb306d3a3de3">evtSend</a> (std::function&lt; void(int err) &gt; fun)=0</td></tr>
<tr class="separator:a79dd374eaaa258ffa03cbb306d3a3de3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0d494c310963f45d061fd7bc52b5bd7" id="r_ac0d494c310963f45d061fd7bc52b5bd7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac0d494c310963f45d061fd7bc52b5bd7">evtStop</a> (std::function&lt; void()&gt; fun)=0</td></tr>
<tr class="memdesc:ac0d494c310963f45d061fd7bc52b5bd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">对于服务器有效.用于关闭监听  <br /></td></tr>
<tr class="separator:ac0d494c310963f45d061fd7bc52b5bd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>数据通道接口，用来统一数据操作接口。 其中涉及到错误编号的时候，当错误编号小于0的时候是错误编号，等于0的时候是没有发生错误 </p>
<dl class="section version"><dt>版本</dt><dd>1.0 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2020-10-11 </dd></dl>
<dl class="section author"><dt>作者</dt><dd>宋炜 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../dd/d5a/dcitfc_8hpp_source.html">dcitfc.hpp</a> 第 <a class="el" href="../../dd/d5a/dcitfc_8hpp_source.html#l00014">14</a> 行定义.</p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aba834607fa0a5348502faa54c05b6793" name="aba834607fa0a5348502faa54c05b6793"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba834607fa0a5348502faa54c05b6793">&#9670;&#160;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::close </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#ab29c078f0fe5b2a6d7f7723e535c9bcd">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="a683be737dda8743a4c57330173659558" name="a683be737dda8743a4c57330173659558"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a683be737dda8743a4c57330173659558">&#9670;&#160;</a></span>connect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::connect </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>url</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>bind</em></span><span class="paramdefsep"> = </span><span class="paramdefval">false</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a0f76b1e77ef99c4b0d8aa35e4bec2aba">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="ae4bc76c247fe82d026bd886b8922266f" name="ae4bc76c247fe82d026bd886b8922266f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4bc76c247fe82d026bd886b8922266f">&#9670;&#160;</a></span>evtClientConnected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::evtClientConnected </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(const std::string &amp;) &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>对于服务器有效 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fun</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a23ac4cb70bee9eae64582ddde4630331">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="ac5dc97bfbd7470174d41fa37a59e3a2b" name="ac5dc97bfbd7470174d41fa37a59e3a2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5dc97bfbd7470174d41fa37a59e3a2b">&#9670;&#160;</a></span>evtClientDisconnected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::evtClientDisconnected </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(const std::string &amp;)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aeb25eb4177e4fcf5f71c43557117eed5" name="aeb25eb4177e4fcf5f71c43557117eed5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb25eb4177e4fcf5f71c43557117eed5">&#9670;&#160;</a></span>evtClosed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::evtClosed </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void() &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#ac36b5e29b718f1deb99ad69e4c1803d1">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="afcca8985af3ad66c3cb2dabd265ab66a" name="afcca8985af3ad66c3cb2dabd265ab66a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcca8985af3ad66c3cb2dabd265ab66a">&#9670;&#160;</a></span>evtConnected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::evtConnected </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void() &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a2e68bfd470bb9db9b758a575f5aad5b7">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="a6a7cb3bcd4319482321107ffb06fef95" name="a6a7cb3bcd4319482321107ffb06fef95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a7cb3bcd4319482321107ffb06fef95">&#9670;&#160;</a></span>evtError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::evtError </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(int err) &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a59f4dfec6bfc99048cc71072210d526c">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="a3e26237ed9abb93d34ed1f12f3a81e21" name="a3e26237ed9abb93d34ed1f12f3a81e21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e26237ed9abb93d34ed1f12f3a81e21">&#9670;&#160;</a></span>evtRecv()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::evtRecv </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(const char *data, size_t len)&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#ad5e4c03d0b81738911580933263c82c7">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="a79dd374eaaa258ffa03cbb306d3a3de3" name="a79dd374eaaa258ffa03cbb306d3a3de3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79dd374eaaa258ffa03cbb306d3a3de3">&#9670;&#160;</a></span>evtSend()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::evtSend </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(int err) &gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#abb75cef0d726b5d402a4349a07194296">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="ac0d494c310963f45d061fd7bc52b5bd7" name="ac0d494c310963f45d061fd7bc52b5bd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0d494c310963f45d061fd7bc52b5bd7">&#9670;&#160;</a></span>evtStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::evtStop </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void()&gt;</td>          <td class="paramname"><span class="paramname"><em>fun</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>对于服务器有效.用于关闭监听 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fun</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a8f2269332703e9cc735e9e5d4a71705b">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="a5a455d55880e929db216b77768df9932" name="a5a455d55880e929db216b77768df9932"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a455d55880e929db216b77768df9932">&#9670;&#160;</a></span>onClientConnected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::onClientConnected </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a1c3315642ee239fa39e4bd6f5bd9afd0">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="aa4284e7336cd979c61bfc79a72ca90a7" name="aa4284e7336cd979c61bfc79a72ca90a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4284e7336cd979c61bfc79a72ca90a7">&#9670;&#160;</a></span>onClose()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::onClose </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a0c8b8d9b62b578170ff55f620455ad7a">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="acb102933438410297cb1ce2bdb61bf47" name="acb102933438410297cb1ce2bdb61bf47"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb102933438410297cb1ce2bdb61bf47">&#9670;&#160;</a></span>onConnected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::onConnected </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a31000bcdb772f0e6e5379673b441a0ed">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="aedb94ecc6c33b46519041a183100d315" name="aedb94ecc6c33b46519041a183100d315"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedb94ecc6c33b46519041a183100d315">&#9670;&#160;</a></span>onDisconnected()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::onDisconnected </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a902f2d204f63a7c56cf8ddcad8891e47">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="a7fecbd0b883d5c80551b15eb4786229e" name="a7fecbd0b883d5c80551b15eb4786229e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fecbd0b883d5c80551b15eb4786229e">&#9670;&#160;</a></span>onError()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::onError </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>err</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#aadbc4fb737284bf3ea64166fc188867f">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="adf293d37a6b5306a9b1cc95efb5703b6" name="adf293d37a6b5306a9b1cc95efb5703b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf293d37a6b5306a9b1cc95efb5703b6">&#9670;&#160;</a></span>onRecv()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::onRecv </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a764f972608217fda804f163f8161bba1">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="ac931cf0d15bb515c7abd0b89a2cb9caa" name="ac931cf0d15bb515c7abd0b89a2cb9caa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac931cf0d15bb515c7abd0b89a2cb9caa">&#9670;&#160;</a></span>onSend()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::onSend </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>err</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#af62c43e6a3a16e353d42f50028668ce4">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="a8d3e5af287ee032d94c3206b777762f3" name="a8d3e5af287ee032d94c3206b777762f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d3e5af287ee032d94c3206b777762f3">&#9670;&#160;</a></span>send()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void dcItfc::send </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a37a59a25e5b004011b96c96aacb9cce9">tcpSvr</a> 内被实现.</p>

</div>
</div>
<a id="aab0fbc14cc9a4bc6f503c02e3130da6a" name="aab0fbc14cc9a4bc6f503c02e3130da6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab0fbc14cc9a4bc6f503c02e3130da6a">&#9670;&#160;</a></span>type()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual const std::string dcItfc::type </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>在 <a class="el" href="../../d2/d50/classtcp_svr.html#a52861dbf4db48f2dfc7a88c31d18aef8">tcpSvr</a> 内被实现.</p>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../dd/d5a/dcitfc_8hpp_source.html">dcitfc.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
